.class public Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;
.super Lcom/estrongs/android/ui/homepage/viewholder/HomeViewHolder;
.source "SDCardViewHolder.java"

# interfaces
.implements Les/cy$d;


# instance fields
.field private b:Les/cy;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/LinearLayout;

.field private e:Z

.field private f:Ljava/lang/Boolean;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const v0, 0x7f0c01b4

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/ui/homepage/viewholder/HomeViewHolder;-><init>(Landroid/content/Context;I)V

    const/4 p1, 0x0

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->f:Ljava/lang/Boolean;

    const/4 p1, 0x1

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->e:Z

    return-void
.end method

.method private d()V
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/homepage/j;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    const v0, 0x7f080441

    const v1, 0x7f060103

    goto :goto_0

    :cond_0
    const v0, 0x7f080440

    const v1, 0x7f060327

    .line 2
    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->d:Landroid/widget/LinearLayout;

    if-eqz v2, :cond_1

    .line 3
    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 4
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->b:Les/cy;

    if-eqz v0, :cond_2

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/ui/homepage/viewholder/HomeViewHolder;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v1

    invoke-virtual {v0, v1}, Les/cy;->a(I)V

    .line 6
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/HomeViewHolder;->a:Landroid/content/Context;

    instance-of v1, v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    if-eqz v1, :cond_3

    .line 7
    check-cast v0, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const/4 v1, 0x1

    .line 8
    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->i(Z)V

    :cond_3
    return-void
.end method


# virtual methods
.method protected a(Landroid/view/View;)V
    .locals 0

    return-void
.end method

.method public a(Les/cy;)V
    .locals 2

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->b:Les/cy;

    .line 2
    invoke-virtual {p1, p0}, Les/cy;->a(Les/cy$d;)V

    .line 3
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f0902c3

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->c:Landroid/widget/LinearLayout;

    .line 4
    iget-object v0, p0, Landroidx/recyclerview/widget/RecyclerView$ViewHolder;->itemView:Landroid/view/View;

    const v1, 0x7f09050d

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->d:Landroid/widget/LinearLayout;

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->c:Landroid/widget/LinearLayout;

    invoke-virtual {p1, v0}, Les/cy;->a(Landroid/widget/LinearLayout;)V

    return-void
.end method

.method public a(Ljava/lang/Object;)V
    .locals 0

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->b:Les/cy;

    invoke-virtual {p1}, Les/cy;->a()V

    return-void
.end method

.method public a(ZLes/cy$g;)V
    .locals 2

    if-eqz p2, :cond_3

    if-eqz p1, :cond_3

    const/high16 p1, 0x42c80000    # 100.0f

    .line 7
    iget-wide v0, p2, Les/cy$g;->b:J

    long-to-float v0, v0

    mul-float v0, v0, p1

    iget-wide p1, p2, Les/cy$g;->c:J

    long-to-float p1, p1

    div-float/2addr v0, p1

    const/high16 p1, 0x42a00000    # 80.0f

    const/4 p2, 0x1

    const/4 v1, 0x0

    cmpl-float p1, v0, p1

    if-ltz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    .line 8
    :goto_0
    iget-boolean v0, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->e:Z

    if-eqz v0, :cond_2

    .line 9
    iput-boolean v1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->e:Z

    .line 10
    invoke-static {}, Lcom/estrongs/android/ui/homepage/j;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    if-eqz p1, :cond_1

    .line 11
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object p1

    const-string v0, "hp_header_red"

    const-string v1, "red"

    .line 12
    invoke-virtual {p1, v0, v1}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1

    :cond_1
    const/4 p2, 0x0

    .line 13
    :goto_1
    invoke-static {p2}, Lcom/estrongs/android/ui/homepage/j;->a(Z)V

    .line 14
    invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->f:Ljava/lang/Boolean;

    goto :goto_2

    .line 15
    :cond_2
    iget-object p2, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->f:Ljava/lang/Boolean;

    if-eqz p2, :cond_3

    invoke-virtual {p2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p2

    if-eqz p2, :cond_3

    if-nez p1, :cond_3

    .line 16
    invoke-static {v1}, Lcom/estrongs/android/ui/homepage/j;->a(Z)V

    .line 17
    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->f:Ljava/lang/Boolean;

    .line 18
    :cond_3
    :goto_2
    invoke-direct {p0}, Lcom/estrongs/android/ui/homepage/viewholder/SDCardViewHolder;->d()V

    return-void
.end method
